﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_top : System.Web.UI.Page
{
    public override string StyleSheetTheme
    {
        get
        {
            //return base.StyleSheetTheme;
            return ConfigGlobal.GetGlobal().Theme;
        }
        set
        {
            base.StyleSheetTheme = value;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        ConfigGlobal.CheckLog();
        this.uname.Text = Request.Cookies["admin_uname"].Value;
        this.datetime.Text = DateTime.Now.ToShortDateString() + " " + DateTime.Now.DayOfWeek.ToCnWeek();
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {        
        Response.Cookies["admin_uid"].Value = string.Empty;
        Response.Cookies["admin_uname"].Value = string.Empty;
        Response.Cookies["admin_roleid"].Value = string.Empty;
        Session.Abandon();
        Helper.WriteScriptAtBottom("top.location.href='default.aspx'", "nologin");
    }
}
